package com.wise.summer.v1.cms.content.articles;

import com.wise.entities.content.Article;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.restful.PageParamGitHub;
import com.wise.framework.restful.PageResultList;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001600250015;
import static com.wise.model.content.ContentErrMsgs.Err_001600250020;

@Publish
@Getter
@Setter
@ApiInfo("列表查询文章")
public class ListArticles extends PageParamGitHub<PageResultList<Article>> {

    @ApiInfo("文章名")
    private String title;

//    @ApiInfo("栏目")
//    private String columnId;

//    @ApiInfo("排序")
//    private Integer sort;

    @ApiInfo("发布状态 0：未发布   1：发布")
    private Integer state;

    @ApiInfo("栏目id")
    private String columnId;

    @ApiInfo("媒体聚焦1, 通知公告2, 新闻动态(大类)3, 中心党建(类别)4, 研究所党建5, 创新综合体党建6, 招聘(大类)7")
    @NotNull(msg = Err_001600250020)
    private Integer type;

}
